<?php

class Application_Model_Question {

	protected $_id = null;
	protected $_text = "";
	protected $_answers = array();

	public function __construct(array $options = null) {

		if (is_array($options)) {
			$this->setOptions($options);
		}

	}

	public function setId($id) {
		$this->_id = (int) $id;
	}

	public function getId() {
		return $this->_id;
	}

	
	public function setText($text) {
		$this->_text = (string) $text;
	}

	public function getText() {
		return $this->_text;
	}

	
	public function setAnswers($answer) {
		$this->_answers = (array) $answer;
	}

	public function getAnswers() {
		return $this->_answers;
	}
	
	public function addAnswer($answer) {
		array_push($this->_answers, $answer);
	}

}

